# coding:utf-8
import ssl
from app.app import Flask

ssl._create_default_https_context = ssl._create_unverified_context


def register_blueprints(app):
    from .admin import admin as admin_blueprint
    # 注册蓝图
    app.register_blueprint(admin_blueprint, url_prefix='/admin')


def create_app():
    app = Flask(__name__, static_folder='static')
    register_blueprints(app)

    return app
